Local area network for digital data processing system

ABSTRACT

A local area network for interconnecting terminals and other users and data processing systems and other service providers over a communications link. The users and providers connect to the communications link by means of interface units each of which may connect to several users or providers. The interface units communicate over the communications link by means of messages. When a user requires the use of a service, the interface unit establishes a virtual circuit between it and the interface unit connected to the service provider and a service session which allows the user and the service provider to communicate over the virtual circuit. If several users connected to the one interface unit as the first user require services provided by providers which connected to the same interface unit as the first provider, they communicate in sessions over the same virtual circuits. The session messages are accumulated into single virtual circuit messages that are acknowledged in unison by the receiving interface unit. Each virtual circuit in the users&#39; interface units includes a timer which reset when a message is transmitted over the virtual circuit and a data waiting flag set whenever data is present to be transitted over the virtual circuit. The interface units are inhibited from transmitting over a virtual circuit unless the timer has timed out and the data waiting flag is set.

times out and if the data waiting flag is set, the device server transmits a message through the virtual circuit. Until the server circuit timer times out, the device server is inhibited from transmitting a new message over the virtual circuit. Furthermore, the data waiting flag inhibits the device server from transmitting any messages until the data waiting flag is set, indicating it has received a message from the node in which the response requested flag is set or that is has new slot data from the service users to send.

The response requested flag allows the node to immediately acknowledge a message received from the device server, whether or not it has data to send immediately, and to reserve for itself the ability to transmit a second message which has data if no data is sent in the initial message, which second message can be sent even if it receives no intervening message from the device server. The response requested flag in conjunction with the data waiting flag allows the node to force the device server to acknowledge a message that includes data when the server circuit timer next times out, whether or not the device server has data to send. The server circuit timer establishes a minimum delay period after the device server transmits a message before it transmits a subsequent message, thereby allowing other device servers to transmit messages through virtual circuits which they have established over the communications link. The device server and the node thus have the benefit of both a timer based system, based on the server circuit timer, and an event driven system, based on the response requested and data waiting flags.

BRIEF DESCRIPTION OF THE DRAWINGS

This invention is pointed out with particularity in the appended claims. The above and further advantages of this invention may be better understood by referring to the following detailed description taken in conjunction with the accompanying drawings in which:

FIG. 1 is a general block diagram of a local area network constructed in accordance with this invention;

FIG. 2A is a diagram illustrating the contents of a service advertising message transmitted by the service providers in the network depicted in FIG. 1, and FIG. 2B is a diagram of a data base established by the service users in the network of FIG. 1 in response to the service advertising message depicted in FIG. 2A;

FIG. 3A is a diagram depicting a virtual circuit and service sessions, that is useful in understanding the operations of the network depicted in FIG. 1;

FIGS. 3B and 3C are diagrams depicting databases used by the service providers and service users in the network depicted in FIG. 1;

FIG. 4 is a state diagram useful in understanding the operation of the virtual circuit depicted in FIG. 3A;

FIG. 5 is a state diagram useful in understanding the operation of the service sessions depicted in FIG. 1;

FIGS. 6A through 6D depict various formats of virtual circuit messages transmitted through the virtual circuit depicted in FIG. 3A;

FIGS. 7A through 7D depict various formats of session slot messages transmitted between corresponding sessions in the device servers and nodes as depicted in FIG. 3A; and

FIG. 8 depicts the timings of messages transmitted through the virtual circuits as depicted in FIG. 3A.

DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT

FIG. 1 illustrates a local area network 10 in which a plurality of service users, generally indicated by reference numeral 12, communicate with a plurality of service providers, generally indicated by reference numeral 14, over a common communications link 16. A communications link 16 may take the form of any one of a number of communications lines and interface circuitry which transfer data between the service users and service providers in bit serial or parallel form. For example, the communications link may take the form of a coaxial cable and interface circuitry which transmits messages using the well-known Ethernet local area network protocol. In that protocol, data is organized into messages having a predetermined format and transmitted in bit serial form between stations over the coaxial cable. A number of other communications links using diverse protocols exist which could also be used in the local area network depicted in FIG. 1; the specific communications link selected is not an aspect of the invention.

The service users 12 may include a plurality of devices such as, for example, video display terminals 18, printers 20, and personal computers 22. Network 10 also includes a plurality of device servers 24 each of which may connect to several service users and enable the service users to communicate over communications link 16 with the service providers 14. The service providers 14 may include devices such as processors 26, disk drives 28, tape storage units 30 and data links 32 (such as telephone lines or microwave links) and analog-to-digital converters 33. Network 10 also includes a plurality of nodes 34, each of which may be connected to several service providers. Furthermore, each node 34 connects directly to communications link 16 and provides communications between the service providers connected to it and the communications link. It will be appreciated that in some cases a service provider and node may be integrated into one unit that performs both functions.

The service providers 14 provide service to the service users 12. Such services may include, for example, electronic mail storage and forwarding among service users, word processing capabilities, access to programs such as payroll accounting, inventory control or the like, the ability to store or retrieve records on or from disk and tape files, the ability to communicate over telephone lines and microwave links, and the ability to acquire data from, for example, scientific instruments through analog-to-digital converters 33. Such services, as well as additional services, are well known in the art and will not be discussed further herein.

It will be appreciated by those skilled in the art that some service users may also provide services. For example, certain personal computers 22 in network 10, in addition to being a service user, may also have programs that may be accessed and used by another user, such as a terminal 18. In that case, the personal computer may be connected to a node 34 as well as to a device server 24 to make its programs available to a service user as services. A unit which interfaces the personal computer to the communications link may provide the facilities of both a node and a device server.

Periodically,-.each node 34 transmits an "advertising" message which is received by all of the device servers 24, which identifies itself and the services provided by the service providers 14 connected to that node, as well as a "rating" for each service. With reference to FIG. 2A, the service advertising message includes a plurality of fields including a header 50, the contents of which depends on the protocol used over a communications line 16, and a body 54. In one embodiment, the header 50 has a node identification field 51 which identifies the transmitting node, a protocol type field 52 identifying the message as the service advertising message, and a multi-cast address field 53 which enables all of the device servers 24 to receive the message. Following the header 50, the node transmits the body 54 of the message which identifies the various services provided by it and the rating for each service. The ratings indicate, for example, how prompt the service provider 14 may be in responding to a service request, based in part on the number of service users 12 then using the service provided by the specific provider and, thus, the potential delay in responding to communications from another service user who might request the service.

After receiving service advertising messages from the nodes 34, each device server 24 (FIG. 1) establishes a service directory such as depicted in FIG. 2B. The directory comprises a table in which the node identifications, the services provided by the nodes, and the service ratings are stored. Thus, if an operator at a service user 12 desires to use one of the services shown in the directory, the device server can use the contents of the service directory depicted in FIG. 2B to determine which nodes provide that service. If more than one node provides the service requested, the device server uses the rating in the rating fields to determine which node has the highest rating for the service and requests that node to provide the service.

The diverse services that are available from the service providers may be divided into groups or classes and each user may be able to access only those services that are of interest to him. The service names may be organized into groups identified by group names, and the device server will display only those services to a particular user which are in the groups which the user can access.

When a user 12 requires a service provided by a service provider 14 identified in the service directory, the device server 24 begins to establish a virtual circuit 58 between itself and the node 34 that provides the service with the most desirable service rating. With reference to FIG. 3A, the device server 24 in a conventional manner establishes a virtual circuit state machine 60 which provides two-way data communications over a pair of unidirectional data pipes with a virtual circuit state machine 64 established by node 34. The virtual circuit state machines 60 and 64 and the data pipes 62 provide a means for transferring data, in the form of messages between the device server 24 and the node 34 over the communications link 16. It will be appreciated that message communications through a number of data pipes 62 may be multiplexed over the communications link 16, and, accordingly, the communications link provides message communications for a number of virtual circuits in network 10.

The virtual circuit state machine 60 at the device server 24 communicates with the individual service users 12 by means of service sessions using separate session state machines 66 which the device server establishes in a conventional manner for each user. Similarly, the node's virtual state machine 64 communicates with the service providers 14 using separate session state machines 68.

The device server 24 and node 34 use messages transmitted over communication link 16 to set up the virtual circuit and the session state machines, which will be described below in connection with FIGS. 4 through 7D. In brief, however, when a user 12 requires service by a service provider 14, the device server 24 first determines whether a virtual circuit exists between it and the node 34 selected by the device server. If no such virtual circuit exists, the device server 24 transmits a virtual circuit message over communications link 16 to node 34 which causes the node to establish its virtual circuit state machine 64 to support its end of the virtual circuit 58. A session state machine 66 is also set up between its virtual circuit state machine 60 and the user 12 to allow data and other information to be accumulated from and transferred to the user.

In a succeeding virtual circuit message, after the virtual circuit is set up, a session slot is transmitted by device server 24 to node 34 through the virtual circuit 58, specifically over the communications link 16, identifying the required service, and the node 34 sets up a session state machine 68, which connects to the service provider which provides the required service and allows data and other information to be transferred between the virtual circuit state machine and the service provider. Each session state machine collects information to be transferred from its connected user or service provider and provides the information in the form of session messages to the virtual circuit state machine. In turn, the virtual circuit state machine accumulates the session messages from various service users' or providers' state machines which are to be transferred between the same device server 24 and node 34 and forms a single virtual circuit message for transfer through the virtual circuit 58 over the communications link 16. On receiving a virtual circuit message from the virtual circuit 58, the receiving virtual circuit state machine transfers the session messages to the respective session state machines that are the intended recipients for transfer to the respective service users 12 and service providers 14, and returns a single acknowledgement message over the virtual circuit to verify receipt of the virtual circuit message. It will be appreciated that requiring only a single virtual circuit acknowledgement message for the multiplexed messages between service users and providers reduces the acknowledgement message traffic from that often required in the prior art, thereby reducing the traffic overhead over communications link 16, and also reduces the overhead required at the device server and node to generate the acknowledgement messages.

The virtual circuit state machines 60 and 64 in device server 24 and node 34, respectively, include a data base as depicted in FIG. 3B used in transmitting and receiving messages through pipes 62. Data base 70 includes a remote identification word 72 and a local identification word 74. The identification words 72 and 74 contain the identification of the virtual circuit 58 as assigned by node 34 and device server 24. The contents of the local identification word 74 are assigned by the unit in which the data base 70 resides, and the contents of the remote identification word 72 are assigned by the other unit engaged in the virtual circuit. Thus, in the virtual circuit data base 70 which resides in device server 24, the local identification word is assigned by the device server and the remote identification word is assigned by the node 34 which provides the other end of the virtual circuit. Similarly, in the virtual circuit data base 70(FIG. 3B) residing in node 34, the contents of the local identification word 74 are assigned by the node, and the contents of the remote identification word 72 is assigned by the device server. The contents of the two identification words 72 and 74 are transmitted in the virtual circuit messages transferred through the virtual circuit over communications link to allow the device server and node to identify the messages transferred over communications link 16 as being associated with the particular virtual circuit.

The virtual circuit data base 70 also includes a message type field 76 which identifies the type of virtual circuit message to be transmitted next. Three types of virtual circuit messages are transmitted over a virtual circuit, namely, a START virtual circuit message, a RUN message, and a STOP virtual circuit message, which are detailed below in connection with FIGS. 4 and 6A through 6D.

An M field 78 identifies whether the unit including the data base 70 is a master or slave unit. In the network 10 (FIG. 1) device servers 24 are always masters and nodes 34 are always slaves; communications over a virtual circuit are always initiated by the device servers and the nodes always acknowledge or respond to the communications from the device servers.

An R field 80, when set, indicates that the last sent message requires a response.

Data base 70 also includes message counters 82 and acknowledgement counters 84. Each message transmitted by device server 24 or node 34 includes a message sequence number that is checked by the virtual circuit state machine in the receiving unit to ensure that the successive messages are properly received in sequence. Messages are re-transmitted to ensure that they are properly received if they are not acknowledged within a predetermined time; the sequence numbers ensure that the receiving device does not treat a re-transmitted message as a new message if it, in fact, correctly received the message on a previous transmission. The contents of the message counters 82 identify the number of messages which have been transmitted and received, and the acknowledgement counters contain the message numbers of the messages which have been acknowledged. Thus, if a message number is skipped, or if acknowledgements are not received in numerical order, the device server and node can determine which messages may have not been properly transmitted over communications link 16.

A data waiting flag (DWF) 86 is set whenever any session state machine has data to send over the virtual circuit. In a device server 24, the data waiting flag is set when a message is received from a node which requires a response.

A retransmit counter 88 and retransmit timer 90 are used in retransmitting messages which have not been acknowledged within a time selected by the retransmit timer. The transmitting unit retransmits each unacknowledged message a number of times as selected by the retransmit counter 88. If the message is not acknowledged after the retransmit counter counts out, the other end of the virtual circuit is marked out of service.

The virtual circuit data base 70 in a device server 24 also includes a server circuit timer 92. When the device server 24 transmits a message, it resets its server circuit timer 92 and is thereafter inhibited from transmitting a subsequent message until the server circuit timer times out. Thus, even if the data waiting flag 86 is set, indicating that the device server has information to transmit in a virtual circuit message, the device server is inhibited from transmitting virtual circuit messages over virtual circuit 58 until the server circuit timer times out. Conversely, even if the server circuit timer 92 has timed out, the device server 24 does not transmit any messages unless the data waiting flag 86 is set. After the server circuit timer times out, if the virtual circuit's data waiting flag 86 is thereafter set and the previously transmitted messages have been acknowledged, the device server 24 may then immediately transmit a new virtual circuit message over the virtual circuit 58. If a previously transmitted message has not been acknowledged, a device server or node waits an amount of time as specified by the retransmit timer 90 and then retransmits the unacknowledged message.

The server circuit timer 92 thus ensures at least a minimum delay period between the transmission of new virtual circuit messages by the device server 24 through any particular virtual circuit. Thus, when traffic is heavy through the virtual circuit and the data waiting flag is set before the server circuit timer times out, message transmissions will be based on the timing out of the server circuit timer 92. However, if traffic is light through the virtual circuit, the virtual circuit message transmission will be based on the setting of the data waiting flag 86. Since, with one exception as explained below, the nodes 34 only respond to or otherwise acknowledge virtual circuit messages from the device servers, the server circuit timers and the data waiting flags in the device servers also govern message traffic from the nodes through the virtual circuits. The network 10 (FIG. 1) thus achieves the benefits of both the timer-based message transfers and the event-driven message transfers, the event-driven transfers being initiated by the presence of information from user 12 for transfer over the virtual circuits, and the timer-based message transfers being based on the timing out of the server circuit timer, without having the detriments of either.

The virtual circuit data base 70 in a device server 24 also includes a keep-alive timer 94 which enables the device server to send a message over the virtual circuit if it has not sent any messages thereover for a very long period of time, to ensure that the node 34 maintains support for its end of the virtual circuit. The node 34 responds, thereby informing the device server that it also has not gone down.

As noted above, the service user and service provider providing the service required by the user communicate by means of session slots. More specifically, the session state machines at the device server and node transfer session slots which cause transitions between states in the respective session state machines and also transfer service data and status information between the service user and provider.

Each session state machine uses a session data base 100 depicted in FIG. 3C. The session data base includes a remote identification field 102 and a local identification field 104, which are used in the same way as a virtual circuit state machine uses the remote and local identification fields 72 and 74 in the virtual circuit data base 70(FIG. 3B). Specifically, each virtual circuit message that is transmitted over a virtual circuit may include session slots for different service sessions (that is, session slots intended to be used by different session state machines in the device servers and nodes that communicate over the same virtual circuit) and the remote and local identification fields 102 and 104 identify the session and session state machines that are the intended recipients of the session slots. The contents of local identification field are assigned by the unit in which the data base resides, and the contents of the remote data base are assigned by the other unit.

Each session data base 100 also includes a data buffer 106 for storing data received from or to be transmitted to the service user 12 or service providers 14 associated with the particular session state machine.

When the data buffer 106 is loaded with data from the user 12 or service provider 14 connected to the particular session state machine, a data ready flag 108 is set, which in turn enables the data waiting flag 86 in the virtual circuit data base 70 to be set. When the device server or node thereafter sends a message virtual circuit, it can poll the data ready flags of the service sessions assigned to the virtual circuit to determine whether their data buffers have data to transmit, and may remove the contents of various fields, including the data from the data buffers 106 whose associated data ready flags as set, to generate session slots for transfer in a virtual circuit message.

A byte count field 110 identifies the number of bytes of data in the data buffer 106 and is sent with the data in the session slot.

A session slot type field 112 identifies the type of session slot to be sent. Five types of session messages can be sent, including START, STOP, REJECT, DATA, and STATUS messages. -The contents of the session messages will be described below in connection with FIGS. 5 and 7A through 7D.

Local and remote credits fields 114 and 116 in the session data base 100 relate to the number of slots that are available, with each slot relating to a specific amount of data. Each session slot transmitted over a virtual circuit includes a credits field which identifies the amount of space available in the data buffer for any response information from the unit at the other end of the virtual circuit engaged in the service session. The contents of the credits field in the message is provided by the contents of the local credits field 114 in the session data base 100 of the unit transmitting the message. The contents of the remote credits field 116 is provided by the contents of the credits portion of the session slot received from the unit at the other end of the virtual circuit.

FIG. 4 illustrates the various states of virtual circuit state machines 60 and 64 (FIG. 3A) and the various messages which can be transmitted over the virtual circuit during those states and which cause transitions among states. FIGS. 6A through 6D detail the contents of the various virtual circuit messages. As noted above, three types of virtual circuit messages are transmitted through the virtual circuit, including a START virtual circuit message, a STOP virtual circuit message, and a RUN message. The START and STOP virtual circuit messages are used to establish and abolish the virtual circuit, and the RUN message is used to transfer information, including session slots, between service users and providers.

With reference to FIG. 4, the state machines 60 and 64 in the device server 24 and node 34 respectively are both initially in a HALTED state. When a user 12 requires a service provided by a service provider 14 connected to a node 34, if no virtual circuit exists between the device server 24 and that node 34, the device server 24 transmits a START virtual circuit message to node 34.

FIG. 6A depicts the general format of a virtual circuit message. With reference to FIG. 6A, the message begins with a communications link header 120, the format of which depends on the particular communications link 16 selected for the network 10. In the specific embodiment in which the protocal of the communications link conforms to the Ethernet protocol, the communications link header includes a destination address field 122 and a source address field 124 which identify the particular sending and receiving node and device server, and a protocol type 126.

After the communications link header 120, the message includes a virtual circuit header 130 which identifies the virtual circuit over which the message is being transmitted. The virtual circuit header includes a destination virtual circuit identification field 132 and a source virtual circuit identification field 134 the contents of which are provided by the remote and local identification fields 72 and 74 in data base 70 (FIG. 3B). These fields 132 and 134 identify the virtual circuit through which the message is being transmitted. Since each receiving unit may have several virtual circuits, even between itself and the same node or device server, the fields 132 and 134 are used to identify the specific virtual circuit for which the message received over communications link 16 is intended. If the message is a START virtual circuit message from device server 24, with reference to FIG. 6B, the destination virtual circuit identification field 132 contains a "0", and the source virtual circuit identification field contains an identification that is assigned by the device server 24.

The virtual circuit header 130 also includes a message type field, an M flag and an R flag, the contents of which are provided by fields 76, 78, and 80 in the virtual circuit data base 70 (FIG. 3B). The header 30 also includes message sequence and acknowledgement sequence numbers taken from counters 82 and 84, and a field 136 which identifies the number of session slots that may be included in a data field 140. The contents of session number field 136 is used only in connection with a RUN virtual circuit message (FIG. 6C) described below. In a START virtual circuit message, the data field 140 contains information used by the recipient in setting up the virtual circuit, and in a STOP virtual circuit message (FIG. 6D) the data field contains information as to the reason the virtual circuit is being stopped.

A virtual circuit message (FIG. 6A) ends in an error check field 142 which contains a cyclic redundancy check word used to verify that the message was received without errors.

With reference again to FIG. 4, after the device server 24 transmits the START virtual circuit message, it shifts from a HALTED state to a STARTING state. Similarly, when the node 34 receives the START virtual circuit message, it shifts from a HALTED state to a STARTING state and responds with either a START virtual circuit message, indicating that it will support and participate in the virtual circuit, or a STOP virtual circuit message, indicating that it will not support the virtual circuit. In either case, the node 34 retrieves the contents of the source virtual circuit identification field 134 from the message and stores it in the remote identification field 72 in its virtual circuit data base 70 as the device server's identification of the virtual circuit.

With reference again to FIG. 6B, if the node responds with a START virtual circuit message, the node uses the contents of the source virtual circuit identification field 134 from the device server's START virtual circuit message as the contents of the destination virtual circuit field 132 in its responding START virtual circuit message. The node also provides the contents of the source virtual circuit identification field 134 (FIG. 6A) as its identification code for the virtual circuit. The device server retrieves the contents of this field, stores it in the remote identification field in its data base 70 for this virtual circuit and thereafter uses it in the destination virtual circuit identification field 132 of future messages transmitted over the virtual circuit.

With reference to FIG. 6D, if the node responds with a STOP virtual circuit message, it also provides a source virtual circuit identification code and the data field 140 identifies the reason that the node will not support the virtual circuit; one such reason may be that the node 34 is currently supporting other virtual circuits and has insufficient resources to provide support for another virtual circuit. If the node 34 transmits a STOP virtual circuit message to the device server, both the node and the device server return to the halted state. The device server may then attempt to establish a virtual circuit to another node connected to a service provider that provides the desired service or inform the user that the service is not available if no other node provides the service.

In addition, the user may determine, after the device server has transmitted a START virtual circuit message, that it does not need to use the particular service. This is indicated in FIG. 4 by a USER HALT directed at the STARTING state of device server 24. If that occurs, the device server transmits a STOP virtual circuit message (FIGS. 6A and 6D) to node 34. Both virtual circuit state machines 60 and 64 then return to the halted condition.

If node 34 responds with a START virtual circuit message, and if no USER HALT occurs at the device server 24 in the starting state, both the state machines 60 and 64 (FIG. 3A) shift to a RUNNING state. In this condition, the device server 24 and node 34 can transmit RUN virtual circuit messages depicted in FIGS. 6A and 6C. In this condition, the data field 140 contains session slots which are described below (FIGS. 5 and 7A through 7D). The number of session messages is identified in the session number field 136 in the virtual circuit header 130 (FIG. 6A). In the session messages, the device server 24 and node 34 transmit service information between the service users 12 and service providers 14 (FIG. 1), more specifically the service information is transmitted between service state machines 66 and 68.

When the user no longer needs a service, it disconnects from the service, and, if no other users are using the virtual circuit, a USER HALT condition exists. If the state machines 60 and 64 are both in the RUNNING state, the device server may transmit a STOP virtual circuit message (FIGS. 6A and 6D) to node 34 and return to the HALTED state.

As has been noted above, when the virtual circuit state machines 60 and 64 are in the running state, the device server 24 and node 34 can transmit RUN virtual circuit messages which include session slots. Using the session slots, the session state machines 66 and 68 are established, and service data and status information are transmitted between the service user and provider. When the service user no longer needs the service, the session state machines may then be abolished, thereby terminating the service session. The session slots which are depicted in FIGS. 7A through 7D. By means of the session slots, the session state machines 66 and 68 shift among various states as depicted in FIG. 5.

With reference to FIG. 5, the session state machine 66 of device server 24 has five states, including a HALTED state, a STARTING state, an ABORT START state, a RUNNING state, and a STOPPING state. The session state machine 68 of node 34 has four states, including a HALTED state, a STARTING state, a RUNNING state, and a STOPPING state. Initially, both state machines 66 and 68 are in a halted state, and when a user requests a particular service, the device server transmits a START session message, in a virtual circuit message through the virtual circuit.

With reference to FIG. 7A, the format of a session message includes a session header 150 which includes destination session identification field 152, a source session identification field 154, a byte count field 156, a session slot type field 158, and a credits field 160. A session data field 162 carries information for establishing and abolishing a session, as well as service session data and status information. The destination and source session identification fields 152 and 154 are used in the identical manner as the destination and source virtual circuit identification fields 122 and 124 (FIG. 6A) described above. The contents of these fields are stored in and taken from the remote and local identification fields 102 and 104 in the session data base 100 (FIG. 3C).

The contents of the byte count field 156 identify the length of the session data field 162, and are taken from the byte count field 110 in the data base 100. The contents of the session slot type field are taken from field 112 in the session data base, and identify the type of message being transmitted. As noted above, five types of session slots may be,. transmitted. The contents of the CREDITS field 160 are taken from the local credits field 114 in session data base 100 (FIG. 3C) to identify the number of slots that are available in the data buffer 106 for any response. When a unit receives a session slot, the contents of the CREDITS field may be stored in the remote credits field 116 of the session database 100 to indicate the amount of space in the data buffer 106 available for a subsequent session slot transfer.

In the START session slot (FIG. 7B) the session data field 162 provides information required by the session state machine at node 34 for setting up the session. Such information may include, for example, the type of service required, thereby identifying the service provider which is to engage in the service session, and size of the data buffer 106 set aside for the session in the device server.

After the device server 24 transmits the START session slot, the session state machine 66 shifts to a STARTING state. After the node receives the START message, the node's session state machine 68 shifts to the STARTING state and the node responds with either a START session slot, after which the state machine 68 shifts to the RUNNING state, or a REJECT session slot (FIG. 7D), after which the state machine shifts to the HALTED state. In either case, the node 34 supplies its session identification code in the source session identification field 154 (FIG. 7A). If the node responds with a REJECT session slot, the credits field 160 also contains the reason that it is rejecting the service session. Such reasons may include, for example, that the node is unable to provide the service because of inadequate resources, or that the node or the service provider is shutting down.

With reference again to FIG. 5, the device server 24 may receive the START session or REJECT session slot from node 34 when it is in either the STARTING state or in an ABORT START state. The device server's session state machine 66 shifts from the STARTING state to the ABORT START stage if a user disconnect request, indicating that the user does not want to use the service which it previously selected, is received from a user before either a START session or a REJECT session slot is received from node 34 . If the session state machine 66 is in the ABORT START state, and if a REJECT session slot is received, the session state machine 66 merely returns to the HALTED state. However, if a START session slot is received, the device server 24 transmits a STOP session slot over the virtual circuit to the node causing its session state machine 68 to return to the HALTED state. In either case, both session state machines 66 and 68 return to the HALTED state.

However, if the device server's session state machine 66 is in the STARTING state, and if the device server receives a START message from the node 34, its session state machine shifts to the RUNNING state. In that state, and with the node's session state machine 68 in the RUNNING state, RUN session slots including service data and status information may be transmitted back and forth between device server 24 and node 34 over the virtual circuit. With reference to FIGS. 7A and 7C, the session data field 162 in such messages contains user and service provider data and status information.

After the operator determines that it no longer requires access to the service, the user requests disconnection from the service and both state machines 66 and 68 shift to the STOPPING state and then return to the halted state.

FIG. 8 depicts the timings of various messages transmitted between a device server 24 and node 34, in response to the service circuit timer 92 and the R flag 80, the R flag in the server being set or cleared by the R field in a virtual circuit header in a message from the node. FIG. 8 also illustrates the timings of the retransmissions of various messages that are not received by the server and node, in response to the re-transmit timers 90 in each unit. Specifically, when a node receives a message from the device server, it will respond with a message having the R field being either set or clear depending on whether or not the message includes data. If the message does not include any data, the R field is clear, and the node may thereafter transmit a second message to the device server which includes data. The second message has a set R field. This is illustrated in time (E). As shown at times (F) and (G), the second message may cross with another message from the device server, which may transmit a message when its data waiting flag is set, when its service circuit timer times out. The R field being set forces the data waiting flag to be set, thereby enabling the server to send an acknowledging message to the node, whether or not it actually has data to send. The R field being clear enables the node to thereafter send another message with data, thereby removing the constraint on the node that it send messages, and therefore data, only when it receives messages from the server.

A detailed description of the operation of network 10 (FIG. 1) will now be presented. Periodically, each node 34 connected into network 10 transmits a multicast service advertising message (FIG. 2A) identifying the particular services which are available through it. All of the device servers receive the advertising message and establish a service directory (FIG. 2B) identifying the services which are available and the nodes and ratings of the services available through each node. The available services may be displayed to the operators of the service users from the device servers' directories.

When a service user 12 requires the use of a service, its device server 24 determines which node 34 provides the service and which has the highest service rating for that service. The device server 24 then determines whether it has a virtual circuit 58 between itself and that node. If no such virtual circuit exists, the device server transmits a START virtual circuit message (FIGS. 6A and 6B) to the node to attempt to establish a virtual circuit over communications link 16. If the node responds with a START virtual circuit message, the virtual circuit has been established and the device server 24 then establishes a session between the virtual circuit 58 and the user 12 requesting the service. It will be appreciated that, if a virtual circuit already exists to the required node, the device server need not set up another virtual circuit, but instead may proceed to the next steps and use the existing virtual circuit for communications. With some communications links, such as a link conforming to the Ethernet protocol, it may be desirable to limit the number of users using a single virtual circuit, since the length of each virtual circuit message is limited. Accordingly, even if a virtual circuit is already established between the device server and node, it may be desirable to establish additional virtual circuits if a maximum number of users are already using one virtual circuit.

After the virtual circuit is established, the device server 24 then may transmit virtual circuit messages through the virtual circuit including session messages multiplexed from several service sessions. A session begins with a START session slot (FIGS. 7A and 7B) transmitted to device server 24 to node 34 identifying the required service, in an attempt to establish a service session over the virtual circuit 58 with the service provider 14 which provides the required service. If the service session is established, service data and status information can be transmitted in RUN session messages.

The rate at which the device server can transmit virtual circuit messages over the communications link 16 is limited by the server circuit timer 92 (FIG. 3B) thereby allowing messages for other virtual circuits to be multiplexed over the communications link. Furthermore, the data waiting flags 86 in the device server and node exhibits it from transmitting virtual circuit messages through the virtual circuit until it has information to transmit. Thus, the device server does not transmit any messages over the virtual circuit 58 unless it has information available to be transmitted or unless it has received a message from the node in which the response requested flag has been set, and then no more often than permitted by the server circuit timer.

When a user finally determines that it no longer requires a service, the session can be abolished by device server transmitting a STOP session slot. If all of the sessions are abolished for a virtual circuit, the device server 24 may then abolish the virtual circuit by the transmission of a STOP virtual circuit message.

If additional service users 12 require services provided by a node 34, their session slots may be carried by the virtual circuit messages transmitted over virtual circuit 58. Thus, a single virtual circuit message transmitted over the virtual circuit 58 can contain messages between a number of users 12 and service providers 14. By establishing a virtual circuit between the device server 24 and node 34, and multiplexing session slots onto a single virtual circuit message, the number of acknowledgement messages may be reduced to one response message for each virtual circuit message. This reduction results in, not only a reduced amount of message traffic over the communications link since only the virtual circuit messages between nodes and device servers are acknowledged, and not the messages between particular service users and service providers. In the past, each message between service users and service providers had been acknowledged by a separate acknowledgement message, which not only increased message traffic over the communications link, but also required processing activities by the service user and service provider that are not required in the network 10 constructed in accordance with the invention.

The foregoing description has been limited to a specific embodiment of the invention. It will be apparent, however, that the invention can be practiced in networks having diverse basic construction than is disclosed in this specification, with the attainment of some or all of the advantages of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention. 

What is claimed as new and desired to be secured by Letters Patent of the United States is:
 1. A local area network (10) including a server (24) and a node (34) interconnected by a communications link (16),A. said node (34) transmitting node messages each including a data field (140, 162) for containing data to be transferred to said server and a response requested flag field (80) having a set condition and a clear condition; B. said server (24) including: i. timing means (92) for performing a timing operation to assert a timing signal at the end of a predetermined timing interval; ii. data storage means (106) for storing data for transmission to said node; iii. data waiting flag means (86 108), having a set condition and a clear condition; iv. message transmission means (60, 66, 100) for generating server messages for transmission over the communications link (16), each said server message being generated only when said timing signal (92) is asserted and the data waiting flag means (86) is in said set condition, said message transmission means (60, 66, 100) further resetting said timing means (92) and enabling said timing means 92 to begin said timing operation in response to the transmission of each said server message; v. server message receiving means (60, 66, 100) for connection to said communications link 16 for receiving node messages; and vi. first data waiting flag condition establishment means connected (108) to said data storage means for setting said data waiting flag means (86) into said set condition, in response to said data storage means (106) containing data to be transmitted vii. second data waiting flag condition establishment means (60, 62, 66, 80) for setting said data waiting flag means (86) into said set condition, in response to receipt by said server message receiving means of a node message in which said response requested flag field has said set condition,and said timing means (92) and said data waiting flag means (86) together regulate transmission of messages onto said communications link both from said server (24) and from said node (34).
 2. A local area network as defined in claim 1 wherein said node comprises:A. node data storage means for storing data to be transmitted over said communications link; B. node message transmission means connected to said node data storage means for transmitting said node messages; C. node message receiving means for receiving messages from the communications link and for enabling, in response to the receipt of a message, said node message transmission means to transmit a node message over said communications link, the node message including data in said node data storage means; and D. transmission enabling means connected to said node message transmission means and said node data storage means to set a condition of said response requested flag field to indicate whether or not said node requires a response to a last sent message.
 3. A local area network as defined in claim 2 wherein each said node message includes a node message number field, said node message transmission means including a node message counter means for providing a node message identification value that identifies each node message, said node message transmission means further including means connected to said message counter means for transmitting said node message identification value in said node message identification field and for incrementing said node message counter means.
 4. A local area network as defined in claim 3 wherein each said node message further includes an acknowledgement number field, said node further including a server message acknowledgement means connected to said node message receiving means and said node message transmission means for enabling said node message transmission means to transmit, in a node message, a value identifying a server message received by said node message receiving means.
 5. A local area network as defined in claim 4 wherein said server and said node is identified by an address, each server message and each node message further including a recipient address field for identifying the server or node as the intended recipient, said node message transmission means further including means for transmitting in the address field of a node message the address of said server and said node message receiving means selectively receiving said server message in response to a determination of whether the address field of said server message contains the address of said node.
 6. A local area network as define din claim 1 wherein said server message transmission means including a server message counter means for providing server message identification value that identifies each server message, said server message transmission means further including means connected to said server message counter means for transmitting said server message identification value in a server message identification field in said server message and for incrementing said message counter means.
 7. A local area network as defined in claim 6 wherein each said server message further includes an acknowledgement number field, said server further including a node message acknowledgement means for enabling said server message transmission means to transmit, in the server message, a value identifying the last node message received by said server message receiving means.
 8. A local area network as defined in claim 7 wherein said server and said node are each identified by an address, each server message and each node message further including a recipient address field for identifying the server or node as the intended recipient, said server message transmission means further including means for transmitting in the address field of a server message the address of said server and said server message receiving means selectively receiving said node message in response to a determination of whether the address field of said server message contains the address of said server.
 9. A local area network of the type having a server and a node interconnected by a communications link, comprising:A. said node transmitting node messages each having a data field for containing data to be transferred to said server and a response requested flag having a set condition and a clear condition; B. said server having: i. timing means for performing a timing operation to assert a timing signal at the end of a predetermined timing interval; ii. data storage means for storing data for transmission to said node; iii. data waiting flag means having a set condition and a clear condition; iv. message transmission means for generating server messages for transmission over the communications link, each said server message being generated only when said timing signal is asserted and the data waiting flag means is in said set condition; v. server message receiving means for connection to said communications link for receiving node messages; and vi. data waiting flag condition establishment means connected to said data storage means for setting said data waiting flag means in response to said data storage means containing data to be transmitted vii. second data waiting flag condition establishment means for setting said data waiting flag means into said set condition, in response to receipt by said server message receiving means of a node message in which said response requested flag field has said set condition,and said timing means and said data waiting flag means together regulate transmission of messages onto said communication link both from said server and from said node.
 10. A local area network as defined in claim 9 wherein said node includes:A. node data storage means for storing data to be transmitted over said communications link; B. node message transmission means connected to said node data storage means for transmitting said node messages; C. node message receiving means for receiving messages from the communications link and for enabling, in response to the receipt of a message, said node message transmission means to transmit a node message over said communications link, the node message including data in said node data storage means; and D. transmission enabling means connected to said node message transmission means and said node data storage means to set a condition of said response request flag field to indicate whether or not said node requires a response to a last sent message.
 11. A local area network as defined in claim 10 wherein each said node message includes a node message number field, said node message transmission means including a node message counter means for providing a node message identification value that identifies each node message, said node message transmission means further including means connected to said message counter means for transmitting said node message identification value in said node message identification field and for incrementing said node message counter means.
 12. A local area network as defined in claim 11 wherein each said node message further includes an acknowledgement number field, said node further including a server message acknowledgement means connected to said node message receiving means and said node message transmission means for enabling said node message transmission means to transmit, in a node message, a value identifying a server message received by said node message receiving means.
 13. A local area network as defined in claim 12 wherein said server and said node is identified by an address, each server message and each node message further including a recipient address field for identifying the server or node as the intended recipient, said node message transmission means further including means for transmitting in the address field of a node message the address of said server and said node message receiving means selectively receiving said server message in response to a determination of whether the address field of said server message contains the address of said node.
 14. A local area network as defined in claim 9 wherein said server message transmission means including a server message counter means for providing a server message identification value that identifies each server message, said server message transmission means further including means connected to said server message counter means for transmitting said server message identification value in a server message identification field in said server message and for incrementing said message counter means.
 15. A local area network as defined in claim 14 wherein each said server message further includes an acknowledgement number field, said server further including a node message acknowledgement means for enabling said server message transmission means to transmit, in the server message, a value identifying the last node message received by said server message receiving means.
 16. A local area network as defined in claim 15 wherein said server and said node are each identified by an address, each server message and each node message further including a recipient address field for identifying the server or node as the intended recipient, said server message transmission means further including means for transmitting in the address field of a server message the address of said server and said server message receiving means selectively receiving said node message in response to a determination of whether the address field of said server message contains the address of said server.
 17. A local area network for interconnecting a service user an a service provider, comprising:a device server unit which connects to a service user and a node which connects to a service provider and a communications link to effect transfers of messages between the node and device server unit, each message comprising a message data field for containing message data, a message identification field containing a value identifying the message and a message acknowledgement field containing a value identifying an acknowledged message, each message from said node to said device server unit further comprising a response requested indicator field having a set condition and a clear condition; A. said node comprising: i. a node message counter for generating a message identification value; ii. a node message acknowledgment counter for generating a message acknowledgment value; iii. node data store for storing data to be transmitted over said communications link; iv. a node retry timer for generating a node retry indication at the end of a predetermined node retry timing interval; v. a node message receiver for receiving messages from said communications link and modifying the message identification value generated by said node message counter and the message acknowledgment value generated by said node message acknowledgment counter in response to the contents of said message acknowledgment field of each received message, said node message receiver enabling said node retry timer in response to a message not being acknowledged; and vi. a node message transmitter for transmitting a message over said communications link comprising a message identification value from said node message counter and a message acknowledgment value from said message acknowledgment counter, and conditioning said response requested indicator field to a selected condition, in response to the last sent message requiring a response; B. said device server unit comprising a device server communications link message control portion comprising: i. a message interval timer for asserting a message interval timing indication at the end of a predetermined message timing interval; ii. a device server message counter for generating a message identification value; iii. a device server data store for accumulating data from said service user for transmission over said communication link; iv. a data waiting indicator having a set condition when data is stored in said data store and a reset condition; v. a device server message acknowledgment counter for generating a message acknowledgment value; vi. a device server retry timer for generating a device server retry indication at the nd of a predetermined device server retry timing interval longer than said message timing interval; vii. a keep alive timer for generating a keep alive timing indication at the end of a predetermined keep alive timing interval longer than said message timing interval; viii. a device server message receiver for (I) receiving messages from said communications link, (II) modifying the message identification value generated by said device server message counter and the message acknowledgement value generated by said device server message acknowledgment counter in response to the contents of said message acknowledgment field of each received message, (III) disabling said device server retry timer in response to a message being acknowledged, and (IV) setting said data waiting indicator in response to said response requested indicator field having a predetermined value; ix. a device server message generator for generating a message containing data from said data store in response to any of the following events: (I) the coincidence of said data waiting indicator having a set condition and said message interval timer generating the message interval timing indication, (II) the generation of a device server retry indication by said device server retry timer, and (III) the generation of a keep alive timing indication by said keep alive timer; and x. a device server message transmitter for transmitting messages generated by said device server message generator over the communications link, said message transmitter controlling timing of its transmission of messages after receipt from said message generator in response to conditions over said communications link.
 18. A method of operating a local area network including a server and a node interconnected by a communications link, comprising the steps of:A. transmitting node messages from said node each including a data field for containing data to be transferred to said server and a response requested flap field having a set condition and a clear condition; B. in said server performing the steps of: i. conducting a timing operation with a timer to assert a timing signal at the end of a predetermined timing interval; ii. storing data for transmission to said node in a data store; iii. providing a data waiting flag having a set condition and a clear condition; iv. generating server messages for transmission over the communications link, each said server message being generated only when said timing signal is asserted and the data waiting flag is in said set condition; v. receiving node messages via said communications link; and vi. setting said data waiting flag in response to said data store containing data to be transmitted; and vii. setting said data waiting flag in response to receipt by said server via the link of a node message in which said response requested flag field has said set condition.
 19. The method as defined in claim 18 wherein the following steps are performed in said node;A. storing data to be transmitted over said communications link in a node data store; B. generating node messages; C. receiving server messages from the communications link, in response to the receipt of a server message, transmitting a node message over said communications link, the node message including data in said node data store; and D. setting the response requested flag field into said set condition when the last sent node message requires a response.
 20. The method as defined in claim 19 wherein each said node message includes a node message identification field, and further comprising the steps of providing a node message identification value from a node message counter to identify each node message, transmitting said node message identification value in said node message identification field and incrementing said node message counter.
 21. The method as defined in claim 20 wherein each said node message further includes an acknowledgement number field, and further comprising the step of transmitting, in a node message acknowledgement number field, a value identifying a server message received by said node.
 22. The method as defined in claim 21 wherein said server and said node are each identified by an address, each server message and each node message further including a recipient address field for identifying the server or node as the intended recipient, transmitting in the address field of a node message the address of said server and selectively receiving said server message in response to a determination of whether the address field of said server message contains the address of said node.
 23. The method as defined in claim 18 wherein said server provides a server message identification value via a message counter that identifies each server message, and further comprising transmitting said server message identification value in a server message identification field in said server message and incrementing said message counter.
 24. The method as defined in claim 23 wherein each said server message further includes an acknowledgement number field, transmitting, in the server message acknowledgement nuber field, a value identifying the last node message received by said server.
 25. The method as defined in claim 24 wherein said server and said node are each identified by an address, each server message and each node message further including a recipient address field for identifying the server or node as the intended recipient, transmitting in the address field of a server message the address of said server and selectively receiving said node message in response to a determination of whether the address field of said server message contains the address of said server.
 26. A local area network for establishing a communications session between a user and a node, said local area network of the type having a server for communicating said user's data to said node, comprising:said node having: means for said node to send a message to said server in response to receipt of a message from said server; means, in response to said node requiring a response from said server, for sending a message to said server; and, said server having: timing means for indicating a passage of a predetermined time interval; means, in response to said apparatus receiving data from said user OR in response to said apparatus receiving a node message from said node, for sending a server message for receipt by said node after an expiration of said predetermined time interval, said server message containing any data received from said user if there is any, and containing no data if there is no data received from said user; whereby said timing means regulates both said server sending data from said user to said node and regulates said node in sending messages for receipt by said server.
 27. A local area network for establishing a communications session between a user and a node, said local area network of the type having a server for communicating said user's data to said node, comprising:said node having: means for said node to send a message to said server in response to receipt of a message from said server; means, in response to said node requiring a response from said server, for sensing a message to said server having a response requested flag field set to indicate that a response is required by said node; and, said server having: timing means for indicating a passage of a predetermined time interval; means, in response to said apparatus receiving data from said user OR in response to said apparatus receiving a message from said node having a response requested flag field set to indicate that a response is required by said node, for sending a message for receipt by said node after an expiration of said predetermined time interval, said server message containing any data received from said user if there is any, and containing no data if there is no data received from said user, whereby said timing means regulates both said server sending data from said user to said node and regulates said node in sending messages for receipt by said server.
 28. The apparatus as in claim 27 wherein said means for sending a server message for receipt by said node, further comprises:means for setting a data waiting flag upon receipt of said data from said user, to indicate that said server is enabled to send a message after expiration of said predetermined time interval.
 29. The apparatus as in claim 28 wherein said means for sending a server message, further comprises:means for setting said data waiting flag (86) upon receipt of said response request message, to indicate that said server is enabled to send a message after expiration of said predetermined time interval.
 30. The apparatus as in claim 29 further comprising:means for said server to send a server message for receipt by said node acknowledging a node message received by said server before receipt of a node message requesting a response from said server.
 31. The apparatus as in claim 29 further comprising:means for setting a data waiting flag into a set condition upon receipt of said data from said user, to indicate that said server is enabled to send a message after expiration of said predetermined time interval. means for setting said data waiting flag into a set condition upon receipt of said response request message, to indicate that said server is enabled to send a message after expiration of said predetermined time interval; means, in response to said data waiting flag being in said set condition, for said server to send a message for receipt by said node after expiration of said predetermined time interval.
 32. The apparatus as in claim 27 further comprising:wherein said response request message is a field in a message preamble, and when a bit in said field has a first value said server is required to send an acknowledgment message before said node sends another message for receipt by said server, and when said bit has a second value no response from said server is required before said node can send another message for receipt by said server; means in said node for setting said bit to said second value, and for sending more than one message for receipt by said server without receiving an acknowledgment message from said server; means in said server, in response to receiving a message from said node wherein said bit has said second value, for receiving another message from said node without first said server transmitting an acknowledgment message for receipt by said node; means in said server, in response to receiving a message from said node wherein said bit has said first value, for sending an acknowledgment message to said node upon the expiration of said predetermined time interval. 